package com.gdsdxy.bookshop.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

@ApiModel("查询购物车及项目分页对象")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName(value = "v_cart_book")
public class CartDto {
    @ApiModelProperty("购物车id")
    private Integer cartid;

    @ApiModelProperty("数量")
    private Integer quantity;

    @ApiModelProperty("书籍id")
    private Integer bookid;

    @ApiModelProperty("书籍名字")
    private String bookname;

    @ApiModelProperty("书籍图片")
    private String image;

    @ApiModelProperty("书籍价格")
    private Double price;


    @ApiModelProperty("书籍作者")
    private Integer author;
}